package com.caocaog.market.toccpt.ccptmodel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liguang
 * @version 1.0.0
 * @Project jeecg-boot
 * @Package com.caocaog.market.toccpt.ccptmodel
 * @ClassName CouponUse.java
 * @createTime 2021年12月26日 17:15:00
 * @Description 优惠券核销记录表
 */
@Data
@Slf4j
public class CouponUse {
    /// <summary>
    /// Desc:
    /// Default:
    /// Nullable:False
    /// </summary>           
          // [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="sid")
    @TableId(type = IdType.AUTO)
    @TableField("sid")
    private int Sid ;

    /// <summary>
    /// Desc:领券记录id  cc_coupon_user.sid
    /// Default:
    /// Nullable:False
    /// </summary>           
    @TableField("coupon_user_sid")
    private int CouponUserSid ;

    /// <summary>
    /// Desc:代理商id
    /// Default:
    /// Nullable:False
    /// </summary>           
    @TableField("agent_sid")
    private int AgentSid ;

    /// <summary>
    /// Desc:券id
    /// Default:
    /// Nullable:False
    /// </summary>           
    @TableField("coupon_sid")
    private int CouponSid ;

    /// <summary>
    /// Desc:会员id
    /// Default:
    /// Nullable:False
    /// </summary>           
    @TableField("user_sid")
    private int UserSid ;

    /// <summary>
    /// Desc:使用订单号
    /// Default:
    /// Nullable:True
    /// </summary>
    @TableField("order_no")
    private String OrderNo ;


    /// <summary>
    /// Desc:订单sid   cc_order.sid
    /// Default:
    /// Nullable:True
    /// </summary>           
    @TableField("order_sid")
    private int OrderSid;

    /// <summary>
    /// Desc:券面额
    /// Default:
    /// Nullable:False
    /// </summary>           
    @TableField("money")
    private BigDecimal Money ;

    /// <summary>
    /// Desc:使用金额
    /// Default:
    /// Nullable:False
    /// </summary>           
    @TableField("use_money")
    private BigDecimal UseMoney ;

    /// <summary>
    /// Desc:券使用时间
    /// Default:
    /// Nullable:False
    /// </summary>
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("use_date")
    private Date UseDate ;

    /// <summary>
    /// Desc:创建时间
    /// Default:DateTime.Now
    /// Nullable:False
    /// </summary>
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_date")
    private Date CreateDate ;
}
